require(['js/lib/vue.min'], function (Vue) {
    // $.getScript('https://120.27.241.84/ias-sdk/js/agentAssistSdk.js').done(() => {
        new Vue({
            el: '#assistSdkApp',
            data() {},
            mounted() {
                debugger
                this.getToken()
            },
            methods: {
                getToken() {
                    $.ajax({
                        type : "post",
                        url : "http://120.27.241.84/uap/user/login\n",
                        data : JSON.stringify({
                            sourceSystem:"ias_elite",
                            corpId:"7",
                            name:"cindy",
                            username:"8012"
                        }),
                        contentType : 'application/json;charset=UTF-8',
                        success : function(data, status,xhr) {
                            debugger
                            var token = xhr.getResponseHeader('authorization');
                            window.channel = new MultiChannel(token)
                        },
                        fail : function(xhr) {
                            alert(JSON.stringify(xhr));
                        }
                    })
                }
            }
        })
    // })

})



